#define _CRT_SECURE_NO_WARNINGS 1

#include"RBT.h"
//int main()
//{
//	RBTree<int, int>t;
//	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
//	int b[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
//	for (auto& e : b) t.insert(make_pair(e,e));
//	t.InOrder();
//	return 0;
//}

int main()
{
	RBTree<int, int>t;
	srand(time(0));
	int N = 1000;
	for (int i = 0; i < N; i++)
	{
		t.insert(make_pair(rand(), i));
	}
	t.InOrder();
	cout << endl;
	t.Isbalance();
	return 0;
}